package com.wh.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2022/11/15 21:15
 * @description:
 * @version:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterVo {

    @NotEmpty(message = "姓名不能为空")
    @Length(max = 30, min = 2,message = "姓名长度限制2~30字符")
    private String account;

    @Size(min = 5,max = 8)
    private String password;

    @Size(min = 11,max = 11)
    private String mobile;

    @Max(2)
    private String sex;


    private String avatar;

}
